#ifndef MYMSGIN_H
#define MYMSGIN_H

#include <string>

class MyMsgIn
{
public:
    MyMsgIn(const char *data,unsigned int length);
    virtual ~MyMsgIn();
    bool readId(int &id);
    bool readString(std::string &str);
    bool read2Bytes(int &val);
protected:
private:
    const char *mData;
    unsigned int mLength;
    unsigned int mPos;
};

#endif // MYMSGIN_H
